package com.sync.sync.service.impl;

import com.sync.sync.bean.Stu;
import com.sync.sync.mapper.StuMapper;
import com.sync.sync.service.IStuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StuServiceImpl implements IStuService {

    @Autowired(required = false)
    private StuMapper stuMapper;

    @Override
    public int deleteByPrimaryKey(String name) {
        return stuMapper.deleteByPrimaryKey(name);
    }

    @Override
    public Stu selectByPrimaryKey(String name) {
        return stuMapper.selectByPrimaryKey(name);
    }

    @Override
    public int insert(Stu record) {
        return stuMapper.insert(record);
    }

    @Override
    public int insertSelective(Stu record) {
        return stuMapper.insertSelective(record);
    }
}
